<?php
session_start();
if (isset($_SESSION['PCUN'])) {
    if ($_SESSION['PCUN'] != "") {
        header("Location:myaccount.php");
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Sign Inventory</title>

        <link href="login-box.css" rel="stylesheet" type="text/css" />
    </head>

    <body>

        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background: url(images/header_bg.png) repeat-x scroll 0 0 transparent;
               left: 0;
               position: fixed;
               top: 0;
               width: 100%;
               z-index: 999;">
            <tr>
                <td height="15"></td>
                <td height="15"></td>
                <td height="15"></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td><img src="images/logo.png" style="top:100px;"/></td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>

        </table>

        <form method="post" name="adminLogin" id="adminLogin" action="loginAction.php">

            <div style="padding: 100px 0 0 250px;">

                <div id="login-box">
                    <H2>Login</H2>
                    <br />
                    <div id="login-box-name" style="margin-top:20px;">Email:</div><div id="login-box-field" style="margin-top:20px;"><input name="username" type="text" class="form-login" title="Username" value="" size="30" maxlength="2048" /></div>
                    <div id="login-box-name">Password:</div><div id="login-box-field"><input name="password" type="password" class="form-login" title="Password" value="" size="30" maxlength="2048" /></div>
                    <br />

<!--<span class="login-box-options"><input type="checkbox" name="1" value="1"> Remember Me <a href="#" style="margin-left:30px;">Forgot password?</a></span>-->
                    <br />
                    <br />

                    <input type="submit" name="submit" class="loginButton" />
                    <br/>
                    <p align="center"><span style="color:#CC0000;font-size:13px; font-weight:bold;">
                            <?php
                            if (isset($_REQUEST['msg'])) {
                                if ($_REQUEST['msg'] == '1') {
                                    echo 'Enter all mandatory fields';
                                }
                                if ($_REQUEST['msg'] == '2') {
                                    echo 'Enter valid username/password';
                                }
                                if ($_REQUEST['msg'] == '3') {
                                    echo 'Session expire.Login again.';
                                }
                                if ($_REQUEST['msg'] == '4') {
                                    echo 'Logout Sucessfully';
                                }
                            }
                            ?></span></p>
                </div>

            </div>
        </form>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background: url(images/footer_2bg.png) repeat-x scroll 0 0 transparent;width: 100%;
               z-index: 999; position:fixed; left:0;">
            <tr>
                <td width="1%" height="15"></td>
                <td width="45%" height="15"></td>
                <td width="54%" height="15"></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td colspan="2" style="color:#FFFFFF;font: 11px Verdana, Arial, Helvetica, sans-serif;" align="right"></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td colspan="2" style="color:#FFFFFF;font: 13px Arial, Helvetica, sans-serif;">&nbsp;</a></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>


    </body>
</html>
